import Vue from 'vue'
import Router from 'vue-router'
import index from '@/views/index/index.vue'

Vue.use(Router)

const original = Router.prototype.push
Router.prototype.push = function push(location) {
  return original.call(this, location).catch(err => err)
}

export default new Router({
  mode:'history',
  // base:'/h5/',
  routes: [
    {
      path: '/',
      name: 'index',
      component: index,
    },
  ]
})



